package rmi;

import java.awt.Color;
import java.awt.Point;
import java.io.Serializable;


public class Message implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static enum Type {
	    Point, Ligne, Ellipse, Rectangle
	}
	
	private Point p1,p2;
	private Color bg,fg;
	private float trait;
	private Type type;
	private int id;//numero du processus
	private Estampille date;
	private int nsequence;//numero du sequence(pour fbcast)
	

	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public Point getP1() {
		return p1;
	}
	
	public void setP1(Point p1) {
		this.p1 = p1;
	}
	
	public Point getP2() {
		return p2;
	}
	
	public void setP2(Point p2) {
		this.p2 = p2;
	}
	
	public Color getBg() {
		return bg;
	}
	
	public void setBg(Color bg) {
		this.bg = bg;
	}
	
	public Color getFg() {
		return fg;
	}
	
	public void setFg(Color fg) {
		this.fg = fg;
	}
	
	public float getTraite() {
		return trait;
	}
	
	public void setTraite(float trait) {
		this.trait = trait;
	}
	
	public Type getType() {
		return type;
	}
	
	public void setType(Type type) {
		this.type = type;
	}
	
	public Estampille getDate() {
		return date;
	}
	
	public void setDate(Estampille  date) {
		this.date=date;
	}
	
	public int getNsequence() {
		return nsequence;
	}

	public void setNsequence(int nsequence) {
		this.nsequence = nsequence;
	}

}
